package com.example.demo.dto;

public enum TestEnum {
    COMMIT_QUESTION(1,"提问"),
    COMMIT_ANSWER(2,"回答"),
    COMMIT_COMMENT_ANSWER(3,"评论回答"),
    COMMIT_COMMENT_COMMENT(4,"评论回答");

    private String name;
    private Integer code;

    TestEnum( Integer code,String name) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
